package cn.iocoder.yudao.module.book.controller.app.community.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Schema(description = "APP - 动态评论创建请求 VO")
@Data
public class PostCommentCreateReqVO {

    @Schema(description = "评论内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "很棒的分享！")
    @NotBlank(message = "评论内容不能为空")
    @Size(max = 500, message = "评论内容长度不能超过500个字符")
    private String content;

    @Schema(description = "父评论ID", example = "1")
    private Long parentId;

    @Schema(description = "回复的用户ID", example = "456")
    private Integer replyToUserId;

}
